package com.zker.missyou.repository;/*
 * ClassName: BannerRepository
 * Package : com.zker.missyou.repository
 * Description:
 * @Author zKer
 * @Create 2024/7/8 16:02
 */

import com.zker.missyou.model.Banner;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface BannerRepository extends JpaRepository<Banner,Long> {
    Banner findOneById(Long id);
    Banner findOneByName(String name);
}
